import Nprogress from 'nprogress'
import 'nprogress/nprogress.css'
import router from '@/router'
Nprogress.configure({ showSpinner: false })
router.beforeEach((to, from, next) => {
  Nprogress.start()
  document.title = to.name || ''
  next()
})
router.afterEach(() => {
  Nprogress.done()
})
